<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>拾物找回管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/campusinfo/campusinfoPick/">拾物找回列表</a></li>
		<shiro:hasPermission name="campusinfo:campusinfoPick:edit"><li><a href="${ctx}/campusinfo/campusinfoPick/form">拾物找回添加</a></li></shiro:hasPermission>
	</ul>
	<form:form id="searchForm" modelAttribute="campusinfoPick" action="${ctx}/campusinfo/campusinfoPick/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li><label>姓名：</label>
				<form:select path="userId" class="input-medium">
					<form:option value="" label=""/>
					<form:options items="${campusinfoPicks}" itemLabel="username" itemValue="userId" htmlEscape="false"/>
				</form:select>
			</li>
			<li><label>拾物分类</label>
				<form:select path="classifyId" class="input-medium">
					<form:option value="" label=""/>
					<form:options items="${fns:getDictList('pick')}" itemLabel="label" itemValue="value"  htmlEscape="false"/>
				</form:select>
			</li>
			<li><label>物品名称：</label>
				<form:input path="pickName" htmlEscape="false" maxlength="30" class="input-medium"/>
			</li>
			<li><label>拾到地址：</label>
				<form:input path="pickAddress" htmlEscape="false" maxlength="512" class="input-medium"/>
			</li>
			<li><label>联系方式：</label>
				<form:input path="pickPhone" htmlEscape="false" maxlength="11" class="input-medium"/>
			</li>
			<%--<li><label style="width: 150px">其他的联系方式：</label>--%>
				<%--<form:input path="remarks" htmlEscape="false" maxlength="255" class="input-medium"/>--%>
			<%--</li>--%>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>姓名</th>
				<th>拾物分类</th>
				<th>物品名称</th>
				<th>拾到地址</th>
				<th>联系方式</th>
				<%--<th>其他的联系方式</th>--%>
				<shiro:hasPermission name="campusinfo:campusinfoPick:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="campusinfoPick">
			<tr>
				<td><a href="${ctx}/campusinfo/campusinfoPick/form?id=${campusinfoPick.id}">
					${campusinfoPick.username}
				</a></td>
				<td>
						${fns:getDictLabel(campusinfoPick.classifyId, 'pick',campusinfoPick.id)}
				</td>
				<td>
					${campusinfoPick.pickName}
				</td>
				<td>
					${campusinfoPick.pickAddress}
				</td>
				<td>
					${campusinfoPick.pickPhone}
				</td>
				<%--<td>--%>
					<%--${campusinfoPick.remarks}--%>
				<%--</td>--%>
				<shiro:hasPermission name="campusinfo:campusinfoPick:edit"><td>
    				<a href="${ctx}/campusinfo/campusinfoPick/form?id=${campusinfoPick.id}">修改</a>
					<a href="${ctx}/campusinfo/campusinfoPick/delete?id=${campusinfoPick.id}" onclick="return confirmx('确认要删除该拾物找回吗？', this.href)">删除</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>